<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j"
	
	xmlns:rich="http://richfaces.org/rich"
	template="Plantilla.xhtml">

	<ui:define name="panelSesion">
	</ui:define>
	
		<f:metadata>
		<f:event type="preRenderView" listener="#{LoginBean.cerrar()}"/>
	
		
	</f:metadata>

	
	<ui:define name="contenido">
	<f:view>
	<center>
    	<h:panelGrid width="100%">
        <rich:panel>
            <f:facet name="header">
            <h:outputText value="Banco Central del Ecuador" />
            </f:facet>
            <h:form method="post"  id="formulario">
	            	<center>
            	    <h:panelGrid>
            	    <h:outputText value="Usuario" /> 
					<h:inputText  id="username" value="#{LoginBean.usuario.usrUser}" styleClass="inputbox"/>
					<h:outputText value=""/>
					
				
					<h:outputText value="Contraseña "/> 
					<h:inputSecret id="password"  value="#{LoginBean.usuario.usrPassword}" styleClass="inputbox"/>
					
					 <h:commandButton value="Ingresar" action="#{LoginBean.Login()}" styleClass="buttonwhite"/>
					 </h:panelGrid>
					</center>
            </h:form>
        </rich:panel>
    	</h:panelGrid>
    	<br/>
		</center>
</f:view>
	</ui:define>

</ui:composition>